var cron = require('node-cron');
var util = require('../util');

var log = util.log.getLogger('test');

var valid = cron.validate('59 * * * *');
var invalid = cron.validate('60 * * * *');

log.info(valid);
log.info(invalid);

var task = cron.schedule('* * * * *', function () {
    // log('immediately started');
    log.info(new Date().toLocaleString());
}, false);

task.start();